﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SmallERP.MODEL.FoundationModel
{
    /// <summary>
    /// 实体类PaperInfo
    /// </summary>
    public class PaperInfo_info
    {
        #region 私有字段
        private int _paperTypeID;
        private int _paperFaceID;
        private int _printPaperId;
        private double _length;
        private double _endPaperLength;
        private DateTime _addTime;
        private double _lastLength;
        private DateTime _lastPrintTime;
        private string _remark;
        private int _status;
        private double _width;
        private int _printerID;
        private int _lastBordId;
        private double _paperConsumptionLength;
        private double _paperTitleArea;
        private double _paperEndArea;
        private double _invalidationArea;
        private double _validationArea;
        #endregion

        #region 公开属性
        public int PaperTypeID
        {
            get { return _paperTypeID; }
            set { _paperTypeID = value; }
        }
        public int PaperFaceID
        {
            get { return _paperFaceID; }
            set { _paperFaceID = value; }
        }
        public int PrintPaperId
        {
            get { return _printPaperId; }
            set { _printPaperId = value; }
        }
        public double Length
        {
            get { return _length; }
            set { _length = value; }
        }
        public double EndPaperLength
        {
            get { return _endPaperLength; }
            set { _endPaperLength = value; }
        }
        public DateTime AddTime
        {
            get { return _addTime; }
            set { _addTime = value; }
        }
        public double LastLength
        {
            get { return _lastLength; }
            set { _lastLength = value; }
        }
        public DateTime LastPrintTime
        {
            get { return _lastPrintTime; }
            set { _lastPrintTime = value; }
        }
        public string Remark
        {
            get { return _remark; }
            set { _remark = value; }
        }
        public int Status
        {
            get { return _status; }
            set { _status = value; }
        }
        public double Width
        {
            get { return _width; }
            set { _width = value; }
        }
        public int PrinterID
        {
            get { return _printerID; }
            set { _printerID = value; }
        }
        public int LastBordId
        {
            get { return _lastBordId; }
            set { _lastBordId = value; }
        }
        public double PaperConsumptionLength
        {
            get { return _paperConsumptionLength; }
            set { _paperConsumptionLength = value; }
        }
        public double PaperTitleArea
        {
            get { return _paperTitleArea; }
            set { _paperTitleArea = value; }
        }
        public double PaperEndArea
        {
            get { return _paperEndArea; }
            set { _paperEndArea = value; }
        }
        public double InvalidationArea
        {
            get { return _invalidationArea; }
            set { _invalidationArea = value; }
        }
        public double ValidationArea
        {
            get { return _validationArea; }
            set { _validationArea = value; }
        }
        //public string StatusName { get; set; }
        public string PaperFaceName { get; set; }
        public string PaperTypeName { get; set; }
        #endregion

        public string StatusName
        {
            get
            {
                string strStatusName = string.Empty;
                switch (Status)
                {
                    case (int)SmallERP.COM.Status.PaperInfoStatus.Complete:
                        strStatusName = "完成";
                        break;
                    case (int)SmallERP.COM.Status.PaperInfoStatus.Using:
                        strStatusName = "正在打印";
                        break;
                    case (int)SmallERP.COM.Status.PaperInfoStatus.Used:
                        strStatusName = "使用一部份";
                        break;
                    case (int)SmallERP.COM.Status.PaperInfoStatus.New:
                        strStatusName = "还未使用";
                        break;
                    default:
                        break;
                }
                return strStatusName;
            }
        }
    }
}
